import { type } from 'os';

import { ApiProperty } from '@nestjs/swagger';
import { IsNotEmpty } from 'class-validator';

export class UpdateMenuEntity {


    @ApiProperty({ description: '菜单名称' })
    name?: string;

    @ApiProperty({ description: '路由路径' })
    path?: string;

    @ApiProperty({ description: '父级路由id' })
    pId?: string;

}
export class UpdateMenuDto extends UpdateMenuEntity {

    @IsNotEmpty()
    @ApiProperty({ description: '菜单id不能为空' })
    id: string;
}

